package ch.zbw.iCoach.withArrays;

import java.util.ArrayList;

public class Word {
	
    //Array List words
    private ArrayList <Word> words;
    //Datafield category Word
    private String word;
    private int primaryKey;
    private int parentKey;

    /**
     * Konstruktor
     */
    public Word()
    {
        this.word = word;
        this.primaryKey = primaryKey;
        this.parentKey = parentKey;
            }

    public void addWord(String Word, int primaryKey, int parentKey)
    {
        addWord(Word, +1, 1);
        
    }

    public void delWord(int index)
    {
        words.remove(index);
    }
    
    public Word getWord( int Index)
    {
        return words.get(Index);
    }

    public int getPirmaryKey()
    {
        return primaryKey;
    }

    public int getParentKey()
    {
        return parentKey;
    }

    public int getNumOfElements()
    {
        return words.size();
    }

    public String getWord()
    {
        return word;
    }

    public void setWord(String Word)
    {
        this.word=Word;
    }
    
     public ArrayList <Word> getwords()
    {
        return words;
    }
    
    public void setPirmaryKey(int primaryKey)
    {
        this.primaryKey = primaryKey;
    }

    public void setParentKey(int parentKey)
    {
        this.parentKey = parentKey;
    }
}


